﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DSenadoEdit.aspx.cs" Inherits="Gmis.Web.Manage.Organization.DSenadoEdit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <script type="text/javascript">      
         function uploadifyComplete(event, queueId, fileObj, response, data) {
             //DWZ.ajaxDone(DWZ.jsonEval(response));
             var obj = DWZ.jsonEval(response);
             document.getElementById("idImg").src = obj.msg;
             document.getElementById("txt_sPicture").value = obj.msg;
         }
    </script> 
</head>
<body>
  <div class="pageContent">
        <form method="post" action="Organization/DSenadoHandler.ashx" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <div class="pageFormContent">
            <input type="hidden" name="txt_sId" value="<%=sId %>" />
            <input type="hidden" name="action" value="<%=action %>" />

            <dl class="nowrap">
                <dt>选择成员</dt>
                <dd>
                    <input type="hidden" name="lookup.sId" value="<%=model.sRelationId %>"/>
				    <input type="text" class="required readonly" name="lookup.sName" value="<%=model.sName %>"/> 
                    <a class="btnLook" target="dialog" href="Affairs/SelectPopulation.aspx" width="850" height="550" lookupGroup="lookup" title="查找带回"></a>
                </dd>
                </dl>

                <p>
                    <label>居住类型</label><input type="text" name="lookup.sLive" class="readonly" value="<%=model.sLive %>"/>                 
                </p>

                <p>
                    <label>身份证号</label><input type="text" name="lookup.sIdentity" class="readonly" value="<%=model.sIdentity %>"/>                 
                </p>

                <p>
                  <label>性别</label><input type="text" name="lookup.sSex" class="readonly" value="<%=model.sSex %>"/>                                   
                </p>

                <p>
                  <label>民族</label><input type="text" name="lookup.sNation" class="readonly" value="<%=model.sNation %>"/>                                   
                </p>

                <p>
                    <label>学历</label><input type="text" name="lookup.sEducation" class="readonly" value="<%=model.sEducation %>"/>
                </p>

                <p>
                    <label>婚姻状况</label><input type="text" name="lookup.sMarry" class="readonly" value="<%=model.sMarry %>"/>
                </p>         

                <p>
                    <label>政治面貌</label><input type="text" name="lookup.sPolitics" class="readonly" value="<%=model.sPolitics %>"/>
                </p>  

                <p>
                    <label>联系方式</label><input type="text" name="lookup.sMobile" class="readonly" value="<%= model.sMobile %>"/>
                </p>
                <p>
                    <label>成员编号</label><input type="text" name="txt_sNumber" value="<%=model.sNumber %>" class="required" />
                </p>            
            
                <p>
                    <label>职务</label><input type="text" name="txt_sPosition" value="<%=model.sPosition %>"/>                 
                </p> 

                <p>
                    <label>职责</label><input type="text" name="txt_sDuty" value="<%= model.sDuty %>"/>
                </p>                        

                <dl class="nowrap">
			        <dt>备注</dt>
			        <dd><input type="text" name="txt_sComment" size="95" value="<%= model.sComment %>"/></dd>
		        </dl>      
                
                   <dl class="nowrap">
				   <dt>个人照片：</dt>
				   <dd>
                         <input type="hidden" id="txt_sPicture" name="txt_sPicture" />
                         <img id="idImg" width="400px" height="400px" src="<%= Gmis.Public.CommonFunction.GetOrganizationPath() + model.sPicture %>"/>
                         <span id="fileQueue" class="fileQueue"></span>
                         <input id="testFileInput" type="file" name="image" 
                               uploader="../Scripts/uploadify/scripts/uploadify.swf"
                               cancelImg="../Scripts/uploadify/cancel.png" 
                               script="UploadFile.ashx?action=org"                                
                               fileQueue="fileQueue"
                               onAllComplete="uploadifyComplete" 
                               fileExt="*.jpg;*.jpeg;*.gif;*.png;"
                               fileDesc="*.jpg;*.jpeg;*.gif;*.png;"/>
                   </dd>
                   </dl>        
         </div>      
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent"><button type="submit">提交</button></div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent"><button type="button" class="close">关闭</button></div>
                    </div>
                </li>
            </ul>
        </div>
        </form>
    </div>
</body>
</html>
